<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/10/16 0016
 * Time: 15:58
 */

namespace app\index\model;

trait test{
    public function sayhello(){
        echo "123";
    }
}
class User {
    USE test;
    public function test() {
        echo "!";
    }
}